<!-- include tpl=header -->

<!-- 图片轮播 -->
<!-- php:$slider = phpok('picplayer') -->
<!-- if $slider && $slider.rslist -->
<div id="slider_{$slider.project.id}" class="carousel slide" data-ride="carousel">
	<ol class="carousel-indicators">
		<!-- loop from=$slider.rslist key=$key value=$value id=$tmpid -->
		<li data-target="#slider_{$slider.project.id}" data-slide-to="{$tmpid.index}"{if !$tmpid.index} class="active"{/if}></li>
		<!-- /loop -->
	</ol>
	<div class="carousel-inner">
		<!-- loop from=$slider.rslist key=$key value=$value id=$tmpid -->
		<div class="carousel-item{if !$tmpid.index} active{/if}">
			<a href="{$value.linkurl ? $value.linkurl : 'javascript:void(0);'}" title="{$value.title}" {if $value.linkurl} target="{$value.target}"{/if}><img src="{$value.banner.filename}" class="d-block w-100" alt="{$value.title}" /></a>
		</div>
		<!-- /loop -->
	</div>
	<a class="carousel-control-prev" href="#slider_{$slider.project.id}" role="button" data-slide="prev">
		<span class="carousel-control-prev-icon" aria-hidden="true"></span>
		<span class="sr-only">下一张</span>
	</a>
	<a class="carousel-control-next" href="#slider_{$slider.project.id}" role="button" data-slide="next">
		<span class="carousel-control-next-icon" aria-hidden="true"></span>
		<span class="sr-only">下一张</span>
	</a>
</div>
<!-- /if -->
<section class="index-search">
	<div class="container">
		<div class="row">
			<div class="col-md-7 pt-2 pb-1">
				关键字：
				<!-- php:$list = phpok('_keywords','type=hot','psize=5','sign=1') -->
				<!-- loop from=$list key=$key value=$value id=$tmpid -->
				<a class="p-1" href="{url ctrl=search keywords=$value.title/}">{$value.title}</a>
				<!-- /loop -->
			</div>
			<div class="col">
				<form action="{url ctrl=search/}" method="post" onsubmit="return top_search(this)">
				<div class="form-row">
					<div class="col">
						<input type="text" name="keywords" id="top-keywords" class="form-control" placeholder="请输入要搜索的词" />
					</div>
					<div class="col">
						<button type="submit" class="btn btn-primary bg-orange">搜索</button>
					</div>
				</div>
				</form>
			</div>
		</div>
	</div>
</section>
<section>{$page_rs.content}</section>

<!-- include tpl=footer -->